package com.example.administrator.dagger2demo.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.example.administrator.dagger2demo.application.DemoApplication;
import com.example.administrator.dagger2demo.di.AppComponent;

/**
 * Created by Administrator on 2016/4/12.
 */
public abstract class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setUpActivityComponent(DemoApplication.get(this).getAppComponent());
    }
    public abstract void setUpActivityComponent(AppComponent appComponent);
}
